package exceptions;

import game.GoBoard;

public class IllegalMoveException extends Exception {
	
	GoBoard board;
	int position;
	
	public IllegalMoveException(GoBoard board, int position) {
		this.board = board;
		this.position = position;
	}
	
	public String toString() {
		return "Illegal move ("+board.labelPosition(position)+")";
	}
}
